import { service } from "@/config/request.js";

// 获取商品列表接口
export function getCategoryTree(query) {
  return service({
    path: "/pigx-mall/mallProductCategory/getCategoryTree",
    method: "post",
    params: query,
  });
}
// 获取商品
export function productSearchByCategoryId(query) {
  return service({
    path: "/pigx-mall/app/mallProduct/productSearchByCategoryId",
    method: "get",
    params: query,
  });
}

// 品牌
export function mallBrandPage(categoryId, params) {
  return service({
    path: "/pigx-mall/mallBrand/listByCategory/" + categoryId,
    method: "post",
	params
  });
}
